package mtype

import (
	"time"
)

type UserResponse struct {
	ID        int64      `json:"id,omitempty" `
	Username  string     `json:"username,omitempty" `
	Age       int64      `json:"age,omitempty" `
	Birth     *time.Time `json:"birth,omitempty" `
	Gender    int64      `json:"gender,omitempty" `
	Signature string     `json:"signature,omitempty" `
	Email     string     `json:"email,omitempty" `
	Cellphone string     `json:"cellphone,omitempty" `
	AvatarURL string     `json:"avatarUrl,omitempty" `
	CreatedAt *time.Time `json:"createdAt,omitempty" `
	UpdatedAt *time.Time `json:"updatedAt,omitempty" `
}

// 请求数据Role list
type RoleListParam struct {
	Page  int `json:"page" form:"page"`
	Limit int `json:"limit" form:"limit"`
}

// 用户权限 操作权限 路由权限 response
type UserPermission struct {
	Opareate []int64 `json:"opareate"`
	Route    []int64 `json:"route"`
}

// 获取用户列表

type UserListParam struct {
	Page  int `json:"page" form:"page"`
	Limit int `json:"limit" form:"limit"`
}

type UserList struct {
	Total int64          `json:"total"`
	List  []UserResponse `json:"list"`
}

// 模糊查询用户相关参数
type UserSearchParam struct {
	Page  int    `json:"page" form:"page"`
	Limit int    `json:"limit" form:"limit"`
	Filed string `json:"filed"  form:"filed"`
}
